package com.maxus.mini.backend.open.api.config;

import javax.validation.Validator;

import org.springframework.context.annotation.Bean;
import org.springframework.stereotype.Component;

/**
 * 配置数据校验Bean
 * @author wujinsong
 *
 */
@Component
public class ValidatorConfig {
	@Bean
	public Validator validator() {
		return new org.springframework.validation.beanvalidation.LocalValidatorFactoryBean();
	}
}
